The most commonly used packaging command under Linux is tar, which can be compressed with other commands when packaged with the tar command. How to use the TAR commandTar command[[Email protected] ~]# tar [-cxtzjvfppn] files and directories
Source Address: http://blog.csdn.net/x_iya/article/details/72889456Tar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are
Zip compression tool:1. Install the zip command tool Yum install-y zip2, zip compression tool can be compressed files can also compress the directory, and compression will not be deleted source files, examples are as follows:[[email protected] d6z]#
Tar supportpackage and compress, support directories and files, use a wide range of compression tools on LinuxTar Packaging:
TAR-CVF 171210.tar?.. /d6z/
Package a directory, the format is the first package after the file name,
Tar (1) User Commands tar (1)NAMETar-manual page for tar 1.26SynopsisTar [OPTION ...] [FILE] ...DESCRIPTIONGNU ' tar ' saves many files together into a single tape or disk archive, and canRestore individual files from the archive.Note that this
# The BBB, CCC, and BNR subdirectories exist in the current tree directory. Now, you need to filter out the dump file of gz, that is, you do not need to package [oracle @ linux1 ~]. $ Tree AAAAAA | -- BBB | '-- SYTST_temp.dbf | -- BNR | -- dump |
Tar command
Function descriptionTAR is an acronym for Tape archive, a frequently used archive tool under Linux, often seeing files with the file names ending in. tar and tgz, which are files that are archived with the normal TAR commands and
22.2 "Linux learning is not difficult" archive and compress (2): Use and management of tar packagesUsing the tar command, you can save many files together to a separate tape or disk archive, and you can restore the required files separately from the
IP Filter is a software package that enables network address translation (NAT) or firewall services. It can be used as a core module of UNIX, you can also choose not to embed the core, it is strongly recommended to use it as the core module of UNIX.
1.1 Package Unpack Command (TAR)Common packing commands: tar, usually with the following parameters:
-C: Set parameters command for compressed files (create)
-x: Extracting parameter commands for files
-Z: Do you have the gzip attribute at the same
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.